package com.mingqijia.gassafety.webserver.service;

import cn.hutool.core.lang.func.VoidFunc;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mingqijia.gassafety.db.entity.RunningStrategy;
import com.mingqijia.gassafety.shared.utils.commonUtils.PageUtil;
import com.mingqijia.gassafety.webserver.request.RunningStrategyRequest;
import com.mingqijia.gassafety.webserver.request.SaveRunningStrategyRequest;
import com.mingqijia.gassafety.webserver.request.StrategyListRequest;
import com.mingqijia.gassafety.webserver.request.UpdateRunningStrategyRequest;
import com.mingqijia.gassafety.webserver.response.RunningStrategyDetailRes;
import com.mingqijia.gassafety.webserver.response.RunningStrategyRes;

import javax.validation.Valid;

/**
 * <p>
 * 运行策略 服务类
 * </p>
 *
 * @author fei.zhang
 * @since 2023-12-13
 */
public interface RunningStrategyService extends IService<RunningStrategy> {

    void saveWarnStrategy( SaveRunningStrategyRequest request, int source);

    void editWarnStrategy( SaveRunningStrategyRequest request, int source);

    PageUtil<RunningStrategyRes> warnStrategyList(RunningStrategyRequest request);

    RunningStrategyDetailRes getStrategyDetail(Long id);

    void activeStrategy(UpdateRunningStrategyRequest request);

    void deleteStrategy(UpdateRunningStrategyRequest request);
}



